import { createRouter, createWebHashHistory } from 'vue-router'
import HelloWorld from '../components/HelloWorld.vue'
import HelloWorldPage from '../pages/HelloWorldPage.vue'
import PushFileToDevice from '../pages/pushFileToDevice.vue'
import Dialog from '../pages/dialog.vue'
import HiLog from '../pages/hiLog.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: HelloWorld,
    props: { msg: 'Default Home Page' }
  },
  {
    path: '/page',
    name: 'Page',
    component: HelloWorldPage
  },
  {
    path: '/pushFileToDevice',
    name: 'PushFileToDevice',
    component: PushFileToDevice
  },
  {
    path: '/dialog',
    name: 'Dialog',
    component: Dialog
  },
  {
    path: '/hilog',
    name: 'HiLog',
    component: HiLog
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router 